package com.youlai.boot.system.model.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.*;
import com.baomidou.mybatisplus.annotation.TableName;
import com.youlai.boot.common.base.BaseEntity;
import org.intellij.lang.annotations.Pattern;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 回收请求主实体对象
 *
 * @author youlaitech
 * @since 2025-02-23 20:56
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("gb_recycle_request")
public class RecycleRequest extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 发起回收的用户
     */
    private Long userId;
    /**
     * 发起回收的机构(如果当前是机构)
     */
    private Long orgId;
    /**
     * 省市区
     */
    public String province;
    private String city;
    private String country;
    /**
     * 地址（去哪里获取垃圾进行回收）
     */
    private String address;

    /**
     * 联系方式
     */
    private String mobile;
    /**
     * 期望收益
     */
    private BigDecimal expectReturn;
    /**
     * 上门回收时间
     */
    private LocalDateTime recycleTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 0:待审核，1：待回收，2：已回收，3，已驳回，4：已取消
     */
    private Integer status;
    /**
     * 取消原因
     */
    private String cancelReason;
    /**
     * 驳回原因
     */
    private String rejectReason;
    private Long createBy;
    private Long updateBy;

    @TableLogic
    private Integer isDeleted;
}
